﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WCFMINERP.DisjoinProForOutShop.Forms
{
    public partial class FrmTpyeSelect : Form
    {
        public FrmTpyeSelect()
        {
            InitializeComponent();
        }

        private void FrmTpyeSelect_Load(object sender, EventArgs e)
        {
            lbl_Mess.Text = "";
        }

        public string ShopName { get; set; }

        /// <summary>
        /// 确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void but_OK_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txt_name.Text))
            {
                lbl_Mess.Text = "请输入商户或者客人名！";
                return;
            }
            ShopName = txt_name.Text.Trim();
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
